<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>出差 - OA流程审批系统</title>
    <link href="../css/tailwind.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f5f6fa;
        }
    </style>
</head>
<body class="p-4">
    <!-- 顶部导航 -->
    <div class="flex items-center mb-4">
        <i class="fas fa-arrow-left text-gray-600 mr-4"></i>
        <h1 class="text-lg font-semibold">出差</h1>
    </div>

    <!-- 出差申请表单 -->
    <div class="bg-white rounded-lg shadow-sm p-4 mb-4">
        <h3 class="text-lg font-semibold mb-4">出差申请</h3>
        <form class="space-y-4">
            <!-- 出差类型 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">出差类型</label>
                <select class="w-full p-2 border rounded-lg">
                    <option>国内出差</option>
                    <option>国际出差</option>
                    <option>本地出差</option>
                </select>
            </div>

            <!-- 出差时间 -->
            <div class="grid grid-cols-2 gap-4">
                <div>
                    <label class="block text-sm font-medium text-gray-700 mb-1">开始时间</label>
                    <input type="datetime-local" class="w-full p-2 border rounded-lg">
                </div>
                <div>
                    <label class="block text-sm font-medium text-gray-700 mb-1">结束时间</label>
                    <input type="datetime-local" class="w-full p-2 border rounded-lg">
                </div>
            </div>

            <!-- 出差地点 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">出差地点</label>
                <input type="text" class="w-full p-2 border rounded-lg" placeholder="请输入出差地点">
            </div>

            <!-- 关联项目 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">关联项目</label>
                <select class="w-full p-2 border rounded-lg">
                    <option>项目A - 产品开发</option>
                    <option>项目B - 系统维护</option>
                    <option>项目C - 客户支持</option>
                </select>
            </div>

            <!-- 出差事由 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">出差事由</label>
                <textarea class="w-full p-2 border rounded-lg" rows="3" placeholder="请详细说明出差事由..."></textarea>
            </div>

            <!-- 交通方式 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">交通方式</label>
                <div class="grid grid-cols-3 gap-2">
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="checkbox" class="mr-2">
                        <span>飞机</span>
                    </label>
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="checkbox" class="mr-2">
                        <span>火车</span>
                    </label>
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="checkbox" class="mr-2">
                        <span>汽车</span>
                    </label>
                </div>
            </div>

            <!-- 住宿安排 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">住宿安排</label>
                <div class="space-y-2">
                    <div class="flex items-center">
                        <input type="checkbox" class="mr-2">
                        <span>需要住宿</span>
                    </div>
                    <input type="text" class="w-full p-2 border rounded-lg" placeholder="请输入住宿地点">
                </div>
            </div>

            <!-- 附件上传 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">附件上传</label>
                <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                    <i class="fas fa-cloud-upload-alt text-gray-400 text-2xl mb-2"></i>
                    <p class="text-sm text-gray-500">点击或拖拽文件到此处上传</p>
                </div>
            </div>

            <!-- 审批人 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">审批人</label>
                <div class="flex items-center p-2 border rounded-lg">
                    <img src="https://via.placeholder.com/32" class="w-8 h-8 rounded-full mr-2">
                    <div>
                        <p class="font-medium">李四</p>
                        <p class="text-sm text-gray-500">技术部经理</p>
                    </div>
                </div>
            </div>

            <!-- 提交按钮 -->
            <button type="submit" class="w-full py-3 bg-blue-500 text-white rounded-lg">
                提交申请
            </button>
        </form>
    </div>

    <!-- 出差记录 -->
    <div class="bg-white rounded-lg shadow-sm p-4">
        <h3 class="text-lg font-semibold mb-3">出差记录</h3>
        <div class="space-y-3">
            <div class="p-3 border-b">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">国内出差</p>
                        <p class="text-sm text-gray-500">2024-03-20 至 2024-03-22</p>
                    </div>
                    <span class="text-sm text-green-500">已通过</span>
                </div>
                <p class="text-sm text-gray-600">地点：上海</p>
                <p class="text-sm text-gray-600">项目：项目A - 产品开发</p>
                <p class="text-sm text-gray-600">事由：客户需求调研</p>
            </div>
            <div class="p-3 border-b">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">本地出差</p>
                        <p class="text-sm text-gray-500">2024-03-15</p>
                    </div>
                    <span class="text-sm text-yellow-500">审批中</span>
                </div>
                <p class="text-sm text-gray-600">地点：广州</p>
                <p class="text-sm text-gray-600">项目：项目B - 系统维护</p>
                <p class="text-sm text-gray-600">事由：现场技术支持</p>
            </div>
            <div class="p-3">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">国际出差</p>
                        <p class="text-sm text-gray-500">2024-03-10 至 2024-03-14</p>
                    </div>
                    <span class="text-sm text-red-500">已拒绝</span>
                </div>
                <p class="text-sm text-gray-600">地点：东京</p>
                <p class="text-sm text-gray-600">项目：项目C - 客户支持</p>
                <p class="text-sm text-gray-600">事由：技术交流</p>
            </div>
        </div>
    </div>
</body>
</html> 